<?php
	session_start();
	include('conn.php');
	
	$sql="select custname,addrline1,addrline2,addrline3,city,state,country,phone1,phone2,mobile1,mobile2,logo,emailgen,compemails,bank,ifsc,accountno,entries from clientdetails";
	$result=mysql_query($sql);
	while ($row = mysql_fetch_assoc($result))   
	{		
		$data[] = array(
		"custname" => $row['custname'],
		"addrline1" => $row['addrline1'],
		"addrline2" => $row['addrline2'],
		"addrline3" => $row['addrline3'],
		"city" => $row['city'],
		"state" => $row['state'],
		"country" => $row['country'],
		"phone1" => $row['phone1'],
		"phone2" => $row['phone2'],
		"mobile1" => $row['mobile1'],
		"mobile2" => $row['mobile2'],
		"logo" => $row['logo'],
		"emailgen" => $row['emailgen'],
		"compemails" => $row['compemails'],
		"bank" => $row['bank'],
		"ifsc" => $row['ifsc'],
		"accountno" => $row['accountno'],
		"entries" => $row['entries']
		);
	}
	echo json_encode($data);
?>